package itcz.example.pattern.create_action.factory.abstract_factory;

/**
 * @ClassName: Client
 * @Author: ITCZ
 * @Date: 2025-05-02
 * @Description:
 */
public class Client {

    public static void main(String[] args) {
//        ItaltFactory factory = new ItaltFactory();
        AmericanFactory  factory = new AmericanFactory();
        Coffee coffee = factory.createCoffee();
        Dessert dessert = factory.createDessert();
        System.out.println(coffee.getName());
        dessert.show();
    }
}
